package com.hwz.service;

import com.hwz.dto.*;
import com.hwz.result.PageResult;
import com.hwz.vo.OrderPaymentVO;
import com.hwz.vo.OrderStatisticsVO;
import com.hwz.vo.OrderSubmitVO;
import com.hwz.vo.OrderVO;

public interface OrderService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);
    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    void cancelOrder(OrdersCancelDTO ordersCancelDTO) throws Exception;

    OrderStatisticsVO statisticsOrder();

    void completeOrder(Long id);

    void rejectionOrder(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void confirmOrder(OrdersConfirmDTO ordersConfirmDTO);

    OrderVO getOrderDetails(Long orderId);

    void deliveryOrder(Long orderId);

    PageResult historyOrders(Integer page, Integer pageSize, Integer status);

    void userCancelOrder(Long orderId) throws Exception;

    void repetitionOrder(Long orderId);

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    void reminderOrder(Long orderId);
}
